
<?php include_once 'common/header.php';  ?>
<!-- admin_main -->
<div class="admin_main">
	<!-- Admin_top end -->
	<?php include_once 'common/system_left.php';  ?>
	<!-- Admin_Left End -->
	<div class="admin_right">
		<div class="admin_right_title">
		<strong>系统管理</strong> >> 系统参数设置
		</div>
		<div class="admin_right_info">
		<?php if(isset($admin['type_id']) && $admin['type_id'] !=1){?>
			<div class="Prompt">
			    <div class="Prompt_top"></div>
			  	<div class="Prompt_con">
				    <dl>
				      <dt>提示信息</dt>
				      <dd><span class="Prompt_x"></span></dd>
				      <dd><h2 style="color:red">对不起，权限不足</h2></dd>
				    </dl>
			    </div>
			    <div class="Prompt_btm"></div>
		  </div>
			<?php }else{?>
		<div class="payonline_form">
			<form action="/ychadmin/systemset/edit/" method="post" id="systemsetForm" name="systemsetForm" enctype="multipart/form-data">
			<input type="hidden" id="id" name="id" value="<?php echo $systemset['id'];?>" />
			<input type="hidden" id="oldlogoimg" name="oldlogoimg" value="<?php echo $systemset['logoimg'];?>" />
			<ul>
				<li>
					<font color="red"><?php echo @validation_errors(); ?></font>
				</li>

				<li>
					<div class="admin_right_info_tr admin_right_info_l">平台名称：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="text" name="platform_name" id="platform_name" size="50" value="<?php echo $systemset['platform_name'];?>" />
					</div>
					<div class="admin_right_info_tr admin_right_info_r"><div id="platform_nameTip"></div></div>
				</li>

				<li>
					<div class="admin_right_info_tr admin_right_info_l">网站名称：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="text" name="web_name" id="web_name" size="50" value="<?php echo $systemset['web_name'];?>" />
					</div>
					<div class="admin_right_info_tr admin_right_info_r"><div id="web_nameTip"></div></div>
				</li>
				<li>
					<div class="admin_right_info_tr admin_right_info_l">网站网址：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="text" name="weburl" id="weburl" size="50"  value="<?php echo $systemset['web_url'];?>" />
					</div>
					<div class="admin_right_info_tr admin_right_info_r"><div id="weburlTip"></div> </div>
				</li>
				<li>
					<div class="admin_right_info_tr admin_right_info_l">手机端网址：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="text" name="webmobileurl" id="webmobileurl" size="50"  value="<?php echo $systemset['webmobile_url'];?>" />
					</div>
					<div class="admin_right_info_tr admin_right_info_r"><div id="webmobileurlTip"></div> </div>
				</li>
				<li>
					<div class="admin_right_info_tr admin_right_info_l">网站bbs网址：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="text" name="webbbsurl" id="webbbsurl" size="50"  value="<?php echo $systemset['webbbs_url'];?>" />
					</div>
					<div class="admin_right_info_tr admin_right_info_r"><div id="webbbsurlTip"></div> </div>
				</li>
				<li>
					<div class="admin_right_info_tr admin_right_info_l">网站关键字：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="text" name="keywords" id="keywords" size="50"  value="<?php echo $systemset['keywords'];?>" />
					</div>
					<div class="admin_right_info_tr admin_right_info_r"><div id="keywordsTip"></div></div>
				</li>
				<li>
					<div class="admin_right_info_tr admin_right_info_l">网站描述：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="text" name="description" id="description" size="50"  value="<?php echo $systemset['description'];?>" />
					</div>
					<div class="admin_right_info_tr admin_right_info_r"><div id="descriptionTip"></div> </div>
				</li>
				<li>
					<div class="admin_right_info_tr admin_right_info_l">网站备案号：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="text" name="beian" id="beian" size="50"  value="<?php echo $systemset['beian'];?>" />
					</div>
					<div class="admin_right_info_tr admin_right_info_r"><div id="beianTip"></div> </div>
				</li>
				<li>
					<div class="admin_right_info_tr admin_right_info_l">400服务热线：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="text" name="fuwutel400" id="fuwutel400" size="50"  value="<?php echo $systemset['fuwutel400'];?>" />
					</div>
					<div class="admin_right_info_tr admin_right_info_r"><div id="400fuwutelTip"></div> </div>
				</li>
				<li>
					<div class="admin_right_info_tr admin_right_info_l">其它服务热线：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="text" name="fuwutel" id="fuwutel" size="50"  value="<?php echo $systemset['fuwutel'];?>" />
					</div>
					<div class="admin_right_info_tr admin_right_info_r"><div id="urlTip"></div> </div>
				</li>
				<li>
					<div class="admin_right_info_tr admin_right_info_l">公司名称：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="text" name="compay_name" id="compay_name" size="50"  value="<?php echo $systemset['compay_name'];?>" />
					</div>
					<div class="admin_right_info_tr admin_right_info_r"><div id="compay_nameTip"></div> </div>
				</li>
				<li>
					<div class="admin_right_info_tr admin_right_info_l">传真：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="text" name="fax" id="fax" size="50"  value="<?php echo $systemset['fax'];?>" />
					</div>
					<div class="admin_right_info_tr admin_right_info_r"><div id="faxTip"></div> </div>
				</li>
				<li>
					<div class="admin_right_info_tr admin_right_info_l">联系地址：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="text" name="address" id="address" size="50"  value="<?php echo $systemset['address'];?>" />
					</div>
					<div class="admin_right_info_tr admin_right_info_r"><div id="addressTip"></div> </div>
				</li>
				<li>
					<div class="admin_right_info_tr admin_right_info_l">平台LOGO：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="file" name="logoimg" id="logoimg" /><img src="<?php echo LOGO_IMG.$systemset['logoimg'];?>"  width="310" height="80" />
					</div>
					<div class="admin_right_info_tr admin_right_info_r"><div id="logoimgTip"></div></div>
				</li>
				<li>
					<div class="payment_btm">
						<input type="submit" value="提交"  class="btn_b"/>
					</div>
				</li>
			</ul>
			</form>
			</div>
			<?php }?>
			</div>
	</div>
<!-- Admin_Right End -->
</div>
<!-- admin_main end -->
<script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({formID:"systemsetForm",debug:false,submitOnce:true,
		onError:function(msg,obj,errorlist){
			$("#errorlist").empty();
			$.map(errorlist,function(msg){
				$("#errorlist").append("<li>" + msg + "</li>")
			});
			alert(msg);
		},
		submitAfterAjaxPrompt : '有数据正在异步验证，请稍等...'
	});
	$("#platform_name").formValidator({autoModify:true,onShow:"",onFocus:"平台名称在1-20个汉字之间",onCorrect:""}).inputValidator({min:1,max:100,onError:"平台名称不能为空,请确认"});
	$("#web_name").formValidator({onShow:"",onFocus:"网站名称不能为空",onCorrect:""}).inputValidator({min:1,onError:"网站名称不能为空,请确认"});
	$("#web_url").formValidator({onShow:"",onFocus:"网址不能为空",onCorrect:""}).inputValidator({min:1,onError:"网址不能为空,请确认"}).RegexValidator({regexp:"^[[0-9]{3}-|\[0-9]{4}-]?(\[0-9]{8}|[0-9]{7})?$",onerror:"你输入的网址格式不正确"});


	=/(https?)://([^./]+)([.]?)([^./]+)([.]?)([^./]+)(/[w-./?%&=]*)?/i;  
});
</script>
<div id="dialog" title="系统提示" style="display:none"><p id="msg" style="text-align:center"></p></div>
</body>
</html>
